package com.lmiot.xyclick.Bean;

import android.graphics.Rect;
import android.os.Parcel;
import android.os.Parcelable;

public class CopyNode implements Parcelable {
    public static Creator<CopyNode> CREATOR = new Creator<CopyNode>() {
        /* class com.lmiot.xyclick.Bean.CopyNode.AnonymousClass1 */

        @Override // android.os.Parcelable.Creator
        public CopyNode createFromParcel(Parcel parcel) {
            return new CopyNode(parcel);
        }

        @Override // android.os.Parcelable.Creator
        public CopyNode[] newArray(int i) {
            return new CopyNode[i];
        }
    };
    private Rect bound;
    private String content;

    public int describeContents() {
        return 0;
    }

    public CopyNode(Rect rect, String str) {
        this.bound = rect;
        this.content = str;
    }

    public CopyNode(Parcel parcel) {
        this.bound = new Rect(parcel.readInt(), parcel.readInt(), parcel.readInt(), parcel.readInt());
        this.content = parcel.readString();
    }

    public long caculateSize() {
        return (long) (this.bound.width() * this.bound.height());
    }

    public Rect getBound() {
        return this.bound;
    }

    public String getContent() {
        return this.content;
    }

    public void writeToParcel(Parcel parcel, int i) {
        parcel.writeInt(this.bound.left);
        parcel.writeInt(this.bound.top);
        parcel.writeInt(this.bound.right);
        parcel.writeInt(this.bound.bottom);
        parcel.writeString(this.content);
    }

    public String toString() {
        return "CopyNode{bound=" + this.bound + ", content='" + this.content + '\'' + '}';
    }
}
